package cn.gl.pet.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.gl.basic.domain.BaseDomain;
import cn.gl.org.domain.Department;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * 实体类：
 */
@Data
public class PetType extends BaseDomain{

    private String name;
    private String description;
    /**
     * 父类型id
     */
    private Long parentId;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<PetType> children = new ArrayList<>();


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    @Override
    public String toString() {
        return "PetType{" +
        ", name=" + name +
        ", description=" + description +
        ", parentId=" + parentId +
        "}";
    }
}
